class Student:

    # 构造方法去方便成员变量赋值
    def __init__(self, name, age, tel):
        self.name = name
        self.age = age
        self.tel = tel
        print("Student类创建了一个对象")

    # 定义打印输出的格式
    def __str__(self):
        return f"我叫{self.name}，我{self.age}岁了，联系方式为{self.tel}"

    # 比较大小
    def __lt__(self, other):
        return self.age < other.age

    def __len__(self, other):
        return self.age <= other.age

    def __eq__(self, other):
        return self.age == other.age


stu1 = Student("黄嘉雯", "20", "17818175790")
print(stu1.name)
print(stu1)